package ar.uba.fi.tp2Unit.framework;


/**
 * It is thrown by {@link TestSuite} when it cant add
 * a {@link Test} because there is another one previously
 * added with the same name.
 * 
 * @author grupo12
 * @see {@link TestSuite}
 *
 */
@SuppressWarnings("serial")
public class TestNameAlreadyExistsException extends Exception {

	private final static String MESSAGE = "A test with name %s already exists in the test suite %s";
	
	public TestNameAlreadyExistsException(String testName, String testSuiteName) {
		super(String.format(MESSAGE, testName, testSuiteName));
	}

}
